/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
$('#downloadbtn').click(function() {
    var id = $(this).attr('data-id');
    $.ajax({
        url: '../../doc/getlink',
        type: 'POST',
        data: {id: id},
        success: function(data) {
            $("#dialog").html(data);
            $("#dialog").dialog({
                modal: true,
                buttons: {
                    OK: function() {
                        $("#dialog").dialog('close');
                    }
                }
            });
        },
        error: function(data) {

        }
    });
    return false;
});


